package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAlldetails(consumerParam map[string]interface{}) (error, []models.OrderView, int64) {
	err, consumerData, total := dao.GetallDetails()
	return err, consumerData, total
}


func Deldetails(orderId string) error {
	err := dao.Deldetails(orderId)
	return err
}

func Updatedetails(detailsdata models.Goods) error{
	err:= dao.Updatedetails()
	return err
}

func Adddetailsdetailsdata( models.Goods) (error) {
	err := dao.Adddetails()
	return err
}